<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let a = 1;
      let b = 2;
      let c = 5;
      for (var x = 0; x <= 20; x++) {
        for (var y = 0; y <= 10; y++) {
          for (var z = 0; z <= 4; z++) {
            if (x * 1 + y * 2 + z * 5 == 20) {
              console.log(`1块：${x}；2块：${y}；3块：${z}`);
            }
          }
        }
      }
    </script>
  </body>
</html>
